<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<link rel="stylesheet" type="text/css"
		href="../themes/#{themeBean.theme}/skin.css" />
</h:head>
<h:body>
	<ui:composition template="/template/template.xhtml">
		<ui:define name="title">#{msgs.Administration_changePassword_PageTitle}</ui:define>
		<ui:define name="manuBar">
			<h:form>
				<p:menubar autoSubmenuDisplay="true" id="menu"
					style="font-size:small">
					<p:menuitem value="Home" url="/controlling/index.xhtml"
						icon="ui-icon-document" immediate="true" />
				</p:menubar>
			</h:form>
		</ui:define>
		<ui:define name="content">
			<h:form>
				<p:panel header="#{msgs.Administration_changePassword_ChangePassword}"
					style="font-size: 12px;font-style: italic;">
					<p:focus for="opwd"></p:focus>
					<h:panelGrid columns="2" id="matchGrid">
						<h:outputLabel for="opwd" value="#{msgs.Administration_changePassword_OldPassword}" />
						<p:password id="opwd" value="#{changePasswordBean.oldPassword}"
							feedback="true" required="true" />
						<h:outputLabel for="pwd1" value="#{msgs.Administration_changePassword_NewPassword1}" />
						<p:password id="pwd1" value="#{changePasswordBean.password1}"
							match="pwd2" feedback="true" label="Password 1" required="true" />
						<h:outputLabel for="pwd2" value="#{msgs.Administration_changePassword_NewPassword2}" />
						<p:password id="pwd2" value="#{changePasswordBean.password2}"
							label="Password 2" required="true" feedback="true" />

					</h:panelGrid>
					<p:commandButton id="saveButton" value="#{msgs.Administration_General_Save}"
						actionListener="#{changePasswordBean.changePassword}"
						update="messages" />
					<p:commandButton id="Back" value="#{msgs.Administration_General_Back}"
						action="#{changePasswordBean.toUserIndex}" immediate="true"
						onstart="waiteDialog.show();" />
					<p:messages id="messages" showDetail="true" autoUpdate="true" />
				</p:panel>
			</h:form>
		</ui:define>
	</ui:composition>
</h:body>
</html>

